#[Member]
ETCD_NAME="{{inventory_hostname}}"
ETCD_DATA_DIR="/var/lib/etcd/default.etcd"
ETCD_LISTEN_PEER_URLS="https://{{hostvars[inventory_hostname]['ansible_host']}}:2380"
ETCD_LISTEN_CLIENT_URLS="https://{{hostvars[inventory_hostname]['ansible_host']}}:2379"

#[Clustering]
ETCD_INITIAL_ADVERTISE_PEER_URLS="https://{{hostvars[inventory_hostname]['ansible_host']}}:2380"
ETCD_ADVERTISE_CLIENT_URLS="https://{{hostvars[inventory_hostname]['ansible_host']}}:2379"
ETCD_INITIAL_CLUSTER="
{%- for host in groups['etcd'] -%}
    {{host}}=https://{{hostvars[host]['ansible_host']}}:2380
  {%- if not loop.last -%},{%- endif -%}
{%- endfor -%}
"
ETCD_INITIAL_CLUSTER_TOKEN="{{etcd_initial_cluster_token}}"
ETCD_INITIAL_CLUSTER_STATE="new"